package com.example.mydemo.status.controller;

import com.example.mydemo.cate.service.ICateService;
import com.example.mydemo.status.service.IStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/status")
public class StatusController {
    @Autowired
    private IStatusService statusService;

    @GetMapping("/idName")
    public Map<Integer, String> idName() {
        return statusService.idName();
    }
}
